﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="EmployApplyUpdForm.aspx.cs" Inherits="App_Input_EmployApplyUpdForm" Title="招聘申请" EnableEventValidation="false"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script language="javascript">
        function jobIdChange(object)
    {
     CommonAjaxUtils.FindPositions(object.value,get_jobId_Result_CallBack);

    }
    
     function get_jobId_Result_CallBack(response)
    {
        if (response.value != null)
        {                    

            var drop = window.document.getElementById('<%=applyEmploy.ClientID %>');
            drop.length=0;　　　　            
            var ds = response.value;
            if(ds != null && typeof(ds) == "object")
            {                   
　　                drop.options.add(new Option("",""));
                for(var i=0; i<ds.length; i++)
                {
       
　　                var name=ds[i].JobName;
　　                var id=ds[i].JobId;
　　                drop.options.add(new Option(name,id));
                }                
            }
        }
        return
    }
    function popUpexplan()
    {
        var cntValue = document.getElementById('<%=applyEmploy.ClientID %>').value;
        if(cntValue != "")
        {
            window.open('../Commons/PersonJobForm.aspx?CONTROL_ID='+cntValue,'EmployeeSearchForm','scrollbars,resizable,height=460,width=700');
        }
    }
    function jobChange()
    {
        var cntValue = document.getElementById('<%=applyEmploy.ClientID %>').value;
        if(cntValue != "")
        {
            document.getElementById('<%=explan.ClientID %>').disabled=false; 
        } 
        else
            document.getElementById('<%=explan.ClientID %>').disabled=true; 
    }
    </script>
<table width="100%" class="table_border_line" style="background:ffffff">
    <tr>
        <td colspan="7">
                            <script language="javascript">
                                (new TitleBar('SearchBar', '招聘申请')).showBar();
                            </script>
        </td>
    </tr>
    <tr>
        <td colspan="7" style="height: 22px">
        </td>
    </tr>
    <tr>
        <td style="width: 118px; height: 22px;">
        </td>
        <td style="width: 107px; height: 22px;">
            <span style="color: #ff7300">*</span>
            <asp:Label ID="Label1" runat="server" Text="申请部门："></asp:Label>
        </td>
        <td style="width: 116px; height: 22px;">
            &nbsp;<asp:DropDownList ID="applyPart" runat="server" DataTextField="departName"
                DataValueField="departId" onchange="jobIdChange(this)" Height="25px">
            </asp:DropDownList></td>
        <td style="width: 162px; height: 22px;" align ="center">
            <span style="color: #ff7300">*</span>
            <asp:Label ID="Label2" runat="server" Text="需求岗位："></asp:Label>
        </td>
        <td style="width: 249px; height: 22px;">
            <asp:DropDownList ID="applyEmploy" runat="server" DataTextField="JobName" DataValueField="JobId"
                Height="25px" onchange="jobChange()">
            </asp:DropDownList>
            &nbsp;&nbsp;
                        
                        <button id="explan" runat="server" onclick="javascript:popUpexplan();" disabled="disabled">
                            岗位说明</button>
            </td>
        
        <td style="width: 107px; height: 22px;" align="left">
            审核人：</td>
        <td style="height: 22px"><asp:DropDownList ID="dropCheckEmp" runat="server" DataTextField="employeeName" DataValueField="employeeId"
                Height="25px">
        </asp:DropDownList></td>
    </tr>
    <tr>
        <td colspan="7" style="height: 22px">
        </td>
    </tr>
    <tr>
        <td style="width: 118px; height: 27px;">
        </td>
        <td style="width: 107px; height: 27px;">
            <asp:Label ID="Label4" runat="server" Text="期望到岗日："></asp:Label></td>
        <td style="width: 116px; height: 27px;">
        <asp:TextBox ID="arriveDate" runat="server" MaxLength="10" onfocus="new Calendar().show(this);"
                    Width="100px" Height="25px"></asp:TextBox>
        </td>
        <td style="width: 162px; height: 27px;" align ="center">
            <asp:Label ID="Label5" runat="server" Text="带教老师："></asp:Label></td>
        <td style="width: 249px; height: 27px;">
            <asp:TextBox ID="followTeacher" runat="server" Height="25px"></asp:TextBox></td>
        <td style="width: 107px; height: 27px;">
            <asp:Label ID="Label6" runat="server" Text="需求人数："></asp:Label></td>
        <td style="height: 27px">
            <asp:TextBox ID="needCount" runat="server" Height="25px"></asp:TextBox></td>
    </tr>
    <tr>
        <td colspan="7" style="height: 22px">
        </td>
    </tr>
    <tr>
        <td style="width: 118px; height: 15px">
        </td>
        <td style="width: 107px; height: 15px">
            <asp:Label ID="Label7" runat="server" Text="编制状况："></asp:Label></td>
        <td style="width: 116px; height: 15px">
            <asp:RadioButton ID="RadioButton1" runat="server" GroupName="jobStatus" Text="递补增员" /></td>
        <td style="width: 162px; height: 15px">
            <asp:RadioButton ID="RadioButton2" runat="server" GroupName="jobStatus" Text="替代员工" /></td>
        <td style="width: 249px; height: 15px">
            <asp:TextBox ID="employeeName" runat="server" Height="25px"></asp:TextBox></td>
        <td style="height: 15px" colspan="2">
        </td>
    </tr>
    <tr>
        <td style="height: 22px" colspan="7">
        </td>
    </tr>
    <tr>
        <td colspan="2" style="height: 27px">
        </td>
        <td style="width: 116px; height: 27px;">
            <asp:RadioButton ID="RadioButton3" runat="server" GroupName="jobStatus" Text="新增岗位(编制内)" /></td>
        <td style="width: 162px; height: 27px;">
            <asp:RadioButton ID="RadioButton4" runat="server" GroupName="jobStatus" Text="新增岗位(未有编制) 原因" /></td>
        <td style="width: 249px; height: 27px;">
            <asp:TextBox ID="reseaon" runat="server" Height="25px"></asp:TextBox></td>
        <td colspan="2" style="height: 27px">
        </td>
    </tr>
    <tr>
        <td style="height: 22px" colspan="7">
        </td>
    </tr>
    <tr>
        <td colspan="7" style="height: 22px">
        </td>
    </tr>
    <tr>
        <td colspan="7" align="center" style="height: 22px">
            <asp:Button ID="btnSave" runat="server" CssClass="button" Text="保 存 " Width="80px" OnClick="btnSave_Click" OnClientClick="return confirm('是否保存？')"/>
            &nbsp;
            <asp:Button ID="btnSubmit" runat="server" CssClass="button" Text=" 提 交 " Width="80px" OnClick="btnSubmit_Click" OnClientClick="return confirm('是否提交？')"/>
            &nbsp;
            <asp:Button ID="btnBack" runat="server" CssClass="button" Text=" 返 回" Width="80px" OnClick="btnBack_Click" />
        </td>
    </tr>
    <tr>
        <td colspan="7" style="height: 22px">
        </td>
    </tr>
</table>
</asp:Content>

